/*
    Borealis Library
    A library of commonly used hydrolocial modeling building blocks

    Copyright (C) 2008  Chris Marsh

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
Borealis Unit Test

Created: 11 - June - 2008
(c) Chris Marsh

Unit test to test the Concurrent Matrix class (ConcurrentMatrix)
*/

#ifndef CONCURRENTMATRIX_UNITTEST_H
#define CONCURRENTMATRIX_UNITTEST_H


#include <exception>
#include <cppunit\extensions\HelperMacros.h>


#include <borealis\Borealis.h>

class ConcurrentMatrixTest : public CppUnit::TestFixture
{

	CPPUNIT_TEST_SUITE(ConcurrentMatrixTest);
	CPPUNIT_TEST(TestParenthesisOverload);


	CPPUNIT_TEST_EXCEPTION(TestOutOfBounds,std::invalid_argument);
	CPPUNIT_TEST_SUITE_END();

	private:
		Borealis::Concurrent2DArray<int> *matrix;
	public:
		void setUp();
		void tearDown();
		void TestParenthesisOverload();
		void TestOutOfBounds();

};

#endif
